package com.cskaoyan.bean.vo.admin.region;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: zhang
 * @Date: 2022/11/19 17:31
 * @Since: jdk1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MarketRegionListVo {

    /**
     * id : 1
     * name : 北京市
     * type : 1
     * code : 110000
     * children : [{"id":32,"name":"市辖区","type":2,"code":110100,"children":[{"id":376,"name":"东城区","type":3,"code":110101},{"id":377,"name":"西城区","type":3,"code":110102},{"id":378,"name":"朝阳区","type":3,"code":110105},{"id":379,"name":"丰台区","type":3,"code":110106},{"id":380,"name":"石景山区","type":3,"code":110107},{"id":381,"name":"海淀区","type":3,"code":110108},{"id":382,"name":"门头沟区","type":3,"code":110109},{"id":383,"name":"房山区","type":3,"code":110111},{"id":384,"name":"通州区","type":3,"code":110112},{"id":385,"name":"顺义区","type":3,"code":110113},{"id":386,"name":"昌平区","type":3,"code":110114},{"id":387,"name":"大兴区","type":3,"code":110115},{"id":388,"name":"怀柔区","type":3,"code":110116},{"id":389,"name":"平谷区","type":3,"code":110117},{"id":390,"name":"密云区","type":3,"code":110118},{"id":391,"name":"延庆区","type":3,"code":110119}]}]
     */

    private Integer id;
    private String name;
    private Integer type;
    private Integer code;
    private List<ChildrenBeanX> children;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ChildrenBeanX {
        /**
         * id : 32
         * name : 市辖区
         * type : 2
         * code : 110100
         * children : [{"id":376,"name":"东城区","type":3,"code":110101},{"id":377,"name":"西城区","type":3,"code":110102},{"id":378,"name":"朝阳区","type":3,"code":110105},{"id":379,"name":"丰台区","type":3,"code":110106},{"id":380,"name":"石景山区","type":3,"code":110107},{"id":381,"name":"海淀区","type":3,"code":110108},{"id":382,"name":"门头沟区","type":3,"code":110109},{"id":383,"name":"房山区","type":3,"code":110111},{"id":384,"name":"通州区","type":3,"code":110112},{"id":385,"name":"顺义区","type":3,"code":110113},{"id":386,"name":"昌平区","type":3,"code":110114},{"id":387,"name":"大兴区","type":3,"code":110115},{"id":388,"name":"怀柔区","type":3,"code":110116},{"id":389,"name":"平谷区","type":3,"code":110117},{"id":390,"name":"密云区","type":3,"code":110118},{"id":391,"name":"延庆区","type":3,"code":110119}]
         */

        private Integer id;
        private String name;
        private Integer type;
        private Integer code;
        private List<ChildrenBean> children;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class ChildrenBean {
            /**
             * id : 376
             * name : 东城区
             * type : 3
             * code : 110101
             */

            private Integer id;
            private String name;
            private Integer type;
            private Integer code;

        }
    }
}
